import re
result = re.match(r"\d+", "123")
print(result)